class Tarefa < ActiveRecord::Base
  has_many :funcionario_tarefa

  GRAUS = [0, 1, 2, 3, 5, 8, 13]

  validates :pts_complexidade, :presence => true, :inclusion => { :in => GRAUS }, :numericality => true
  validates :tempo_estimado, :numericality => { :greater_than => 0 }
  validates :nome, :presence => true, :uniqueness => true

end
